<head th:fragment="header">
    <!-- 必要的标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Bootstrap CSS -->
    <link crossorigin="anonymous" integrity="sha512-6KY5s6UI5J7SVYuZB4S/CZMyPylqyyNZco376NM2Z8Sb8OxEdp02e1jkKk/wZxIEmjQ6DRCEBhni+gpr9c4tvA==" href="https://lib.baomitu.com/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" th:href="@{/css/style.css}">
    <script crossorigin="anonymous" integrity="sha512-b3xr4frvDIeyC3gqR1/iOi6T+m3pLlQyXNuvn5FiRrrKiMUJK3du2QqZbCywH6JxS5EOfW0DY0M6WwdXFbCBLQ==" src="https://lib.baomitu.com/Chart.js/3.5.1/chart.js"></script>
</head>

<nav th:fragment="navbar" class="navbar navbar-expand-lg navbar-dark bg-dark">

    <div class="container">
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo03" aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <a class="navbar-brand" href="#" >电影推荐</a>

        <div class="collapse navbar-collapse" id="navbarTogglerDemo03">
            <ul class="navbar-nav mr-auto mt-2 mt-lg-0" >
                <li class="nav-item active">
                    <a class="nav-link" th:href="@{/}">首页</a>
                </li>

                <li class="nav-item">
                    <a class="nav-link" th:href="@{/populars}">最新流行</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{/actors}">主演专区</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{/movies}">电影总览</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{/classifications}">电影分类</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{/comments}">电影评论</a>
                </li>
            </ul>
            <div style="width:150px;height:60px;  margin-left: 1000px;position: absolute;" >
               <a class="input"  href="/security/register" target="_blank" style="width:40px;height:20px;display: block; float: left; margin-top: 20px;font-size:20px;line-height: 20px; -moz-box-align: center;"> <input th:type="submit"
 th:value="注册"></a>
                <a class="input"  href="/security/register" target="_blank"  style="width:40px;height:20px;display: block;margin-top: 20px;margin-left:-10px; float: left; font-size:20px;line-height: 20px;-moz-box-align: center;"> <input th:type="submit"  type="" th:value="登录"></a>
            </div>
        </div>

    </div>
</nav>